//
//  CLBaseViewController.m
//  JG
//
//  Created by 程龙 on 2023/7/27.
//

#import "CLBaseViewController.h"
#import "WHGradientHelper.h"
@interface CLBaseViewController ()

@end

@implementation CLBaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    
    UIImageView *cl_bgImgView = [[UIImageView alloc]init];
    cl_bgImgView.frame = CGRectMake(0, 0, CLWIDTH, CLHEIGHT);
    cl_bgImgView.image = [UIImage imageNamed:@"bg"];
    cl_bgImgView.contentMode = UIViewContentModeScaleToFill; // 充满
    cl_bgImgView.layer.masksToBounds = YES;
    [self.view addSubview:cl_bgImgView];
    
    
     self.gk_navBackgroundColor = CLUIColorFromHEX(0x366AB3);

    self.gk_fullScreenPopDisabled = YES;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/
- (BOOL)prefersStatusBarHidden {
    return self.gk_statusBarHidden;
}

- (UIStatusBarStyle)preferredStatusBarStyle {
    return self.gk_statusBarStyle;
}

- (void)dealloc {
    NSLog(@"%@ dealloc", NSStringFromClass([self class]));
}
@end
